<?php

//$rows

echo "<table>";
//header row
echo "<tr>";
echo "<th>API</th>";
echo "<th>Title</th>";
echo "<th>Author</th>";
echo "<th>Year</th>";
echo "<th>Language</th>";
echo "<th>Publisher</th>";
echo "<th>ISBN</th>";
echo "<th>Image</th>";
echo "</tr>";
//end header
if ($wiki == 1)
//display wiki row
{
echo "<tr>";
echo "<td>Wikipedia</td>";
echo "<td>$titleP</td>";
echo "<td>$authorP</td>";
echo "<td>$pubYearP</td>";
echo "<td>$languageP</td>";
echo "<td>$pubP</td>";
echo "<td>$ISBNP</td>";
echo "<td><img src=$imgUrl height=250></td>";
echo "</tr>";
}
if ($goodreads == 1)
//display goodreads row
{
echo "<tr>";
echo "<td>Goodreads</td>";
echo "<td>$titleGRP</td>";
echo "<td>$authorGR</td>";
echo "<td></td>";
echo "<td></td>";
echo "<td></td>";
echo "<td></td>";
echo "<td><img src=$imgUrlGR height=250></td>";
echo "</tr>";

}
//end table
echo "</table>";


?>